using MediatR;
using RBAC.ErrorCode;
using RBAC.Read.Api.Application.Dto.ERP;

namespace RBAC.Read.Api.Application.Command.ERP.PurchasingManagement.PurchaseReturns
{
    /// <summary>
    /// 采购退货单 + 物料 联查（分页 + 条件）
    /// </summary>
    public class GetPurchaseReturnsWithMaterialsCommand : IRequest<APIPaging<PurchaseReturnWithMaterialDto>>
    {
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 单据编码（模糊）
        /// </summary>
        public string? DocumentCode { get; set; }
        /// <summary>
        /// 跟单编号（模糊）
        /// </summary>
        public string? OrderNumber { get; set; }
        /// <summary>
        /// 物料编码（模糊）
        /// </summary>
        public string? MaterialCode { get; set; }
        /// <summary>
        /// 物料名称（模糊）
        /// </summary>
        public string? MaterialName { get; set; }
    }
}
